﻿#include "BasAirport.h"

int BasAirport::_countId = 0;

BasAirport::BasAirport(string code3, D_OR_I dori, SP_LEVEL spLevel, time_t zoneTime)
    : _code3(code3), _dori(dori), _spLevel(spLevel), _zoneTime(zoneTime) {
    _id = _countId++;

    _basAirportBreak = NULL;
    _basAirportTransfer = NULL;
    _basAirportNight = NULL;
    _isBase = false;
}

BasAirport::~BasAirport() {}

bool BasAirport::isDomestic() {
    if (_dori == D) {
        return true;
    }
    return false;
}

void BasAirport::print() {
    cout << "Airport-> id-" << _id;
    cout << " code3-" << _code3;
    cout << " SpecialLevel" << _spLevel;
    cout << " DorI-" << _dori;
    cout << endl;
}